<?php

declare(strict_types=1);

use function Hyperf\Support\env;

return [
    'write_switch' => (bool)env('WRITE_SLS', true),//写日志开关
    //当前环境代码输出日志配置
    'default' => [
        'endpoint' => env('ALIYUN_SLS_ENDPOINT', 'cn-hongkong-intranet.log.aliyuncs.com'),
        'access_key' => env('ALIYUN_SLS_AK', 'JkZWZhdWx0XzY3ZThkZmQ3Y'),
        'secret_key' => env('ALIYUN_SLS_SK', 'JkZWZhdWx0XzY3ZThkZmQ3Y'),
        'project' => env('ALIYUN_SLS_PROJECT', 'abc'),
        'logstore' => env('ALIYUN_SLS_LOGSTORE', 'production'),
    ],
    //生产环境event_log仓库配置
    'event_log' => [
        'endpoint' => env('ANOTHER_ALIYUN_SLS_ENDPOINT', 'us-east-1.log.aliyuncs.com'),
        'access_key' => env('ANOTHER_ALIYUN_SLS_AK', 'JkZWZhdWx0XzY3ZThkZmQ3Y'),
        'secret_key' => env('ANOTHER_ALIYUN_SLS_SK', 'JkZWZhdWx0XzY3ZThkZmQ3Y'),
        'project' => env('ANOTHER_ALIYUN_SLS_PROJECT', 'abc'),
        'logstore' => env('ANOTHER_ALIYUN_SLS_LOGSTORE', 'server_log'),
    ]
];
